/* eslint-disable no-bitwise */

function isAltDown(): boolean {
	const mouseevent = curMouseEvent();
	return mouseevent && mouseevent.altKey;
}
function isShiftDown(): boolean {
	const mouseevent = curMouseEvent();
	return mouseevent && mouseevent.shiftKey;
}
function isCtrlDown(): boolean {
	const mouseevent = curMouseEvent();
	return mouseevent && mouseevent.ctrlKey;
}

function isRightDown(): boolean {
	const mouseevent = curMouseEvent();
	return mouseevent && (mouseevent.button & 2) > 0;
}
function isButtonsRightDown(): boolean {
	const mouseevent = curMouseEvent();
	return mouseevent && (mouseevent.buttons & 2) > 0;
}
